package com.dianping.cat.alarm;

import java.util.List;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class ServerAlarmRuleDao
  extends AbstractDao {
/* 11 */   public ServerAlarmRule createLocal() { return new ServerAlarmRule(); }





/* 17 */   public int deleteByPK(ServerAlarmRule proto) throws DalException { return getQueryEngine().deleteSingle(ServerAlarmRuleEntity.DELETE_BY_PK, proto); }




  public List<ServerAlarmRule> findAll(Readset<ServerAlarmRule> readset) throws DalException {
/* 23 */     ServerAlarmRule proto = new ServerAlarmRule();

/* 25 */     return getQueryEngine().queryMultiple(ServerAlarmRuleEntity.FIND_ALL, proto, readset);
  }






  public ServerAlarmRule findByPK(int keyId, Readset<ServerAlarmRule> readset) throws DalException {
/* 34 */     ServerAlarmRule proto = new ServerAlarmRule();

/* 36 */     proto.setKeyId(keyId);

/* 38 */     return (ServerAlarmRule)getQueryEngine().querySingle(ServerAlarmRuleEntity.FIND_BY_PK, proto, readset);
  }








/* 48 */   protected Class<?>[] getEntityClasses() { return new Class[] { ServerAlarmRuleEntity.class }; }



/* 52 */   public int insert(ServerAlarmRule proto) throws DalException { return getQueryEngine().insertSingle(ServerAlarmRuleEntity.INSERT, proto); }





/* 58 */   public int updateByPK(ServerAlarmRule proto, Updateset<ServerAlarmRule> updateset) throws DalException { return getQueryEngine().updateSingle(ServerAlarmRuleEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/ServerAlarmRuleDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */